/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pruebas.npuzzle;

import npuzzle.PuzzleNode;

/**
 *
 * @author root
 */
public class PruebaManhattan {

    public static void main(String[] args) {


        int[][] e1 = new int[][]{
            new int[]{1, 2, 3},
            new int[]{4, 5, 6},
            new int[]{7, 8, 0},};
        int[][] e2 = new int[][]{
            new int[]{3, 6, 7},
            new int[]{5, 1, 8},
            new int[]{0, 4, 2},};
        PuzzleNode pn1 = new PuzzleNode(e1, 3);

        PuzzleNode pn2 = new PuzzleNode(e2, 3);
        pn1.setEstado(e1);
        pn2.setEstado(e2);
        System.out.println(pn1.manhattan(pn2));
    }
}
